package com.shop.shop.utile;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

@Data
public class  PageUtile<T>{
     public  Page<T> getPage(MapUtile mapUtile){
         Integer page = mapUtile.getPage();
         Integer size = mapUtile.getSize();
         page=page==null?1:page;
         size=size==null?20:size;

         return  new Page<T>(page,size);
     }
}